﻿using System;
using System.ComponentModel;
namespace RenChangYou.Model
{
    /// <summary>
    /// DY_Order:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class DY_Order
    {
        public DY_Order()
        { }
        #region Model
        private string _orderno;
        private string _customerusername;
        private DateTime _createdtime;
        private int _totalprice;
        private OrderStatus _orderstatus;
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo
        {
            set { _orderno = value; }
            get { return _orderno; }
        }
        /// <summary>
        /// 客户用户名
        /// </summary>
        public string CustomerUserName
        {
            set { _customerusername = value; }
            get { return _customerusername; }
        }
        /// <summary>
        /// 创单时间
        /// </summary>
        public DateTime CreatedTime
        {
            set { _createdtime = value; }
            get { return _createdtime; }
        }
        /// <summary>
        /// 订单总金额
        /// </summary>
        public int TotalPrice
        {
            set { _totalprice = value; }
            get { return _totalprice; }
        }
        /// <summary>
        /// 订单状态
        /// </summary>
        public OrderStatus OrderStatus
        {
            set { _orderstatus = value; }
            get { return _orderstatus; }
        }
        #endregion Model

    }

    [Serializable]
    [Description("订单状态")]
    public enum OrderStatus : int
    {
        [Description("已提交未支付")]
        A = 0,

        [Description("已提交支付完成")]
        B = 1,

        [Description("已提交支付失败")]
        C = 2,

        [Description("取消订单")]
        D = 3,
    }
}

